<?php
	$css_list[0]['url'] = './tpl/css/setting.css';
	$js_list[0] = './public/js/city.js';
?>
<!--{template inc/header_n}-->
<div id="body" class="fm960">
	<div class="piece1">
		<div class="piece1_hd"></div>
		<div class="piece1_bd clearfix">
			<div style="width:1180px;">
				<!--{template inc/settings/settings_menu}-->
				<div id="setting_box" class="fl" style="width:700px;">
					<div id="setting_form" class="setting_basic">
					{if !empty($data)}
					    <table width="100%" border="0" cellspacing="1" class="table_list">
					    {loop $data $k $v}
                            <tr>
                            	<td style="color:red;">优惠券<?php echo $k+1;?></td>
                            	<td>{if $v['is_used']}已使用{else}未使用{/if}</td>
                                <td><a href="{u u/index uid=$v['from_uid']}"><img class="avt icard GUID" uid="{$v['from_uid']}" src="{avatar $users[$v['from_uid']]['avatar'] m}" alt="{$v['from_username']}" width="48"></a>来自『{$v['from_username']}』</td>
                            </tr>
					    {/loop}
					    </table>
                        <div class="pagination mt20"> 				
                        	<!--{subtemplate inc/pages}--> 
                        </div>
                    {else}
                    <p>还没有收到朋友们的优惠券!</p>
                    {/if}
					</div>
				</div>
			</div>
		</div>
		<div class="piece1_ft"></div>
	</div>
</div>
<!--{template inc/footer}-->